package com.yamaikeji.system.domain.plan;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yamaikeji.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户对象 p_user
 * 
 * @author yamaikeji
 * @date 2023-10-03
 */
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户编号 */
    private String userNo;

    /** 用户名称 */
    private String userName;

    /** 用户类型（0普通用户 1月度会员 2年度会员 3终身会员） */
    private String userType;

    /** 会员过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date memberExpireTime;

    /** 用户邮箱 */
    private String email;

    /** 手机号码 */
    private String mobile;

    /** 用户性别（0男 1女 2未知） */
    private String sex;

    /** 头像 */
    private String avatar;

    /** 密码 */
    private String password;

    /** 盐加密 */
    private String salt;

    /** 注册时间 */
    private Date registerTime;

    /** 推送cid */
    private String cid;

    /** 用户状态（0正常 1停用） */
    private String userStatus;

    /** 提醒开关 0关闭 1开启 */
    private String setTipFlag;

    /** 提醒开始开关 0关闭 1开启 */
    private String setTipBeginFlag;

    /** 提醒开始时间 */
    private String  setTipBeginTime;

    /** 提醒结束开关 0关闭 1开启 */
    private String setTipEndFlag;

    /** 提醒结束时间 */
    private String setTipEndTime;

    /** 删除标志（0存在 2删除） */
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public Date getMemberExpireTime() {
        return memberExpireTime;
    }

    public void setMemberExpireTime(Date memberExpireTime) {
        this.memberExpireTime = memberExpireTime;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(String userStatus) {
        this.userStatus = userStatus;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getSetTipFlag() {
        return setTipFlag;
    }

    public void setSetTipFlag(String setTipFlag) {
        this.setTipFlag = setTipFlag;
    }

    public String getSetTipBeginFlag() {
        return setTipBeginFlag;
    }

    public void setSetTipBeginFlag(String setTipBeginFlag) {
        this.setTipBeginFlag = setTipBeginFlag;
    }

    public String getSetTipBeginTime() {
        return setTipBeginTime;
    }

    public void setSetTipBeginTime(String setTipBeginTime) {
        this.setTipBeginTime = setTipBeginTime;
    }

    public String getSetTipEndFlag() {
        return setTipEndFlag;
    }

    public void setSetTipEndFlag(String setTipEndFlag) {
        this.setTipEndFlag = setTipEndFlag;
    }

    public String getSetTipEndTime() {
        return setTipEndTime;
    }

    public void setSetTipEndTime(String setTipEndTime) {
        this.setTipEndTime = setTipEndTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userNo", getUserNo())
            .append("userName", getUserName())
            .append("userType", getUserType())
            .append("email", getEmail())
            .append("mobile", getMobile())
            .append("sex", getSex())
            .append("avatar", getAvatar())
            .append("password", getPassword())
            .append("salt", getSalt())
            .append("registerTime", getRegisterTime())
            .append("userStatus", getUserStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
